import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import direct_to from '@dfeidao/atom-web/url/direct-to';

interface IMyEvent {
	currentTarget: {
		dataset: {
			feidaoId: string;
		}
	};
}
export default async function a001(fd: IFeidaoAiBrowserComponent, e: IMyEvent) {
	// todo

	const page_id = e.currentTarget.dataset.feidaoId;
	if (page_id === 'mine-integral') {
		direct_to('./mine-integral.html?url=mine-integral');
	} else if (page_id === 'mine-purse') {
		direct_to('./mine-purse.html?url=mine-purse');

	} else if (page_id === 'recieve-email') {
		direct_to('./send.html?url=send');
	} else if (page_id === 'mine-collect') {
		direct_to('./mine-collect.html?url=mine-collect');
	} else if (page_id === 'mine-publish') {
		direct_to('./mine-publish.html?url=mine-publish');
	} else if (page_id === 'mine-award') {
		direct_to('./mine-award.html?url=mine-award');
	} else if (page_id === 'staff') {
		direct_to('./staff.html?url=staff');
	} else if (page_id === 'manager') {
		direct_to('./manager.html?url=manager');
	} else {
		// 个人资料
		direct_to('./mine-information.html');
	}




}
